package junitTests;

import javax.swing.JOptionPane;

import mt.comm.ClientComm;
import mt.dummy.ClientCommDummy;
import mt.dummy.MicroTraderClientDummy;
import static org.junit.Assert.*;

import org.junit.Test;

public class MicroTraderClientDummyTest {

	@Test
	public void testStart() {

	}

	@Test
	public void testBegin() {

		String s;
		String s1;

		s = JOptionPane.showInputDialog("Please Insert Username");
		assertNotNull(s);
		if (s != null) {
			if (s.trim().equals("")) {
				JOptionPane.showMessageDialog(null,
						"Please Insert a Valid Username");

			} else {
				s1 = JOptionPane
						.showInputDialog("Name of the server to connect");

				assertNotNull(s1);
			}
			assertNotNull(s.trim());

		}

	}

	@Test
	public void testGUI() {

	}

}
